package cn.edu.sdjzu.xg.eagle.entity;

public class User {

    private Long userId;
    private String username;
    private String password;

    private Teacher teacher;

    public User(Long userId, String username, String password, Teacher teacher) {
        this(username, password, teacher);
        this.userId = userId;
    }

    public User(String username, String password, Teacher teacher) {
        this.username = username;
        this.password = password;
        this.teacher = teacher;
    }

    public Long getUserId() { return userId; }

    public String getUsername() { return username; }

    public String getPassword() { return password; }

    public Teacher getTeacher() { return teacher; }

    public void setUserId(Long userId) { this.userId = userId; }

    public void setUsername(String username) { this.username = username; }

    public void setPassword(String password) { this.password = password; }

    public void setTeacher(Teacher teacher) { this.teacher = teacher; }

    @Override
    public String toString() {
        return "User [id=" + userId + ", username=" + username + ", password=" + password + ", " +
                "teacher=" + teacher + "]";
    }
}
